<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <?php echo $this->headTitle(St_Registry::getConfig("title")); ?><?php echo $this->headLink() ?><?php echo $this->headStyle() ?>

        <script type="text/javascript" src="<?php echo $this->layoutUrl; ?>libs/JQuery/jquery.js"></script>

        <script type="text/javascript" src="<?php echo $this->layoutUrl; ?>libs/JQuery/jquery-ui.custom.min.js"></script>
        <script type="text/javascript" src="<?php echo $this->layoutUrl; ?>libs/JQuery/jquery.validate.js"></script>
        <script type="text/javascript" src="<?php echo $this->layoutUrl; ?>libs/JQuery/jquery.maskedinput-1.2.2.js"></script>
        <!-- block UI -->
        <script type="text/javascript" src="<?php echo $this->layoutUrl; ?>libs/JQuery/jquery.blockUI.js"></script>
        <script type="text/javascript" src="<?php echo $this->layoutUrl; ?>libs/JQuery/confirm.js"></script>
        <script type="text/javascript" src="<?php echo $this->layoutUrl; ?>libs/JQuery/jquery.cookie.js"></script>
        <script type="text/javascript" src="<?php echo $this->layoutUrl; ?>libs/menu.js"></script>
        <!--[if lt IE 7]>
            <script type="text/javascript" src="<?php echo $this->layoutUrl; ?>js/jquery/jquery.dropdown.js"></script>
        <![endif]-->
        <?php echo $this->headScript() ?>
        <link rel="Shortcut Icon" href="<?php echo $this->layoutUrl; ?>ico.ico" />
        <!--<link href="<?php echo $this->layoutUrl; ?>css/style.css" rel="stylesheet" type="text/css" />-->
        <link href="<?php echo $this->layoutUrl; ?>libs/JQuery/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $this->layoutUrl; ?>css/style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <script type="text/javascript">
            batteryObj.layoutUrl = '<?php echo $this->layoutUrl; ?>';
        </script>
        <div id="page_margins">
            <div id="page">
                <div class="bg_menu w100p">

                    <?php echo $this->render('header.phtml') ?>
                    <?php echo $this->render('navigation.phtml') ?>

                </div>
                <?php if ($this->user) { ?>
                    <div class="float_right p8t p10r">
                        <h2 class="float_left p6t m10r white">Hello <a style="color: #fff" href="<?php echo $this->url(array('controller' => 'user', 'action' => 'edit', 'uid' => $this->user['UserID'])); ?>"> <?php echo $this->user['nickName']; ?> </a></h2>
                        <div class="float_left button_leftb1">
                            <div class="button_rightb1"><a href="<?php echo $this->url(array('controller' => 'access', 'action' => 'logout')); ?>"><img src="<?php echo $this->layoutUrl; ?>images/bg_a1.png" alt="" />&nbsp;Logout</a></div>
                        </div>
                        <div class="cl"></div>
                    </div>
                <?php } else { ?>
                    <div class="float_right p8t p10r">
                        <div class="float_left button_leftb1">
                            <div class="button_rightb1"><a href="<?php echo $this->url(array('controller' => 'access', 'action' => 'logout')); ?>"><img src="<?php echo $this->layoutUrl; ?>images/bg_a1.png" alt="" />&nbsp;Logout</a></div>
                        </div>
                        <div class="cl"></div>
                    </div>
                <?php } ?>
                <div class="cb"></div>
                <!-- end: #Navigation -->
            </div>
            <?php echo $this->layout()->content ?>
        </div>
        <div class="stcontainer">
            <div id="loading">Please Wait...</div>
            <div class="notification notification_success">
                <span></span>
                <div class="text">
                    <p><strong></strong> 
                        <span></span>
                    </p>
                </div>
            </div>
            <div id="stExtra"></div>
        </div>
        <div style="display:none" id="dialog-confirm" title="Delete this record?">
            <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Are you sure you want to delete this record?</p>
        </div>
        <!--<div id="dialog-confirm1" style="display: none" ></div>-->
    </body>
</html>